package com.sxjh.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 派车单明细表
 * </p>
 *
 * @author zixin
 * @since 2021-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("trucking_order_details")
@ApiModel(value="TruckingOrderDetails对象", description="派车单明细表")
public class TruckingOrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "派车单ID")
    @TableField("trucking_order_id")
    private Long truckingOrderId;

    @ApiModelProperty(value = "计划单ID")
    @TableField("planned_id")
    private Long plannedId;

    @ApiModelProperty(value = "计划单明细ID")
    @TableField("planned_order_detail_id")
    private Long plannedOrderDetailId;

    @ApiModelProperty(value = "物料ID")
    @TableField("material_id")
    private Long materialId;

    @ApiModelProperty(value = "物料名称")
    @TableField("material_name")
    private String materialName;

    @ApiModelProperty(value = "预计数量/KG")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "实际数量/KG")
    @TableField("real_quantity")
    private BigDecimal realQuantity;

    @ApiModelProperty(value = "额外信息")
    @TableField("extra")
    private String extra;

    @ApiModelProperty(value = "是否全部生成出入库单，1是")
    @TableField("is_generate")
    private Integer isGenerate;

    @ApiModelProperty(value = "供应商处地磅单毛重，单位KG")
    @TableField("gross_weight")
    private BigDecimal grossWeight;

    @ApiModelProperty(value = "供应商处地磅单皮重，单位KG")
    @TableField("tare_weight")
    private BigDecimal tareWeight;

    @ApiModelProperty(value = "供应商处地磅单净重，单位KG")
    @TableField("net_weight")
    private BigDecimal netWeight;

    @ApiModelProperty(value = "供应商处地磅单照片")
    @TableField("weight_img")
    private String weightImg;

    @ApiModelProperty(value = "供应商是否已输入重量信息")
    @TableField("is_weight")
    private Integer isWeight;

    @ApiModelProperty(value = "回填ID")
    @TableField("backfill_id")
    private Integer backfillId;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.UPDATE)
    private LocalDateTime updatedAt;


}
